#!/usr/bin/python3

import lirc

try:
    while True:
        sockid = lirc.init("pylirc")
        lirc.nextcode()
except KeyboardInterrupt:
    lirc.deinit()
